package com.artpri.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CategoryJoinGroup entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "category_join_group", catalog = "jpw")
public class CategoryJoinGroup implements java.io.Serializable {

	// Fields

	private Integer cjgId;
	private Integer gcgId;
	private String gcgName;
	private Integer gcId;
	private String categoryName;

	// Constructors

	/** default constructor */
	public CategoryJoinGroup() {
	}

	/** minimal constructor */
	public CategoryJoinGroup(Integer gcgId, String gcgName, Integer gcId) {
		this.gcgId = gcgId;
		this.gcgName = gcgName;
		this.gcId = gcId;
	}

	/** full constructor */
	public CategoryJoinGroup(Integer gcgId, String gcgName, Integer gcId,
			String categoryName) {
		this.gcgId = gcgId;
		this.gcgName = gcgName;
		this.gcId = gcId;
		this.categoryName = categoryName;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "cjg_id", unique = true, nullable = false)
	public Integer getCjgId() {
		return this.cjgId;
	}

	public void setCjgId(Integer cjgId) {
		this.cjgId = cjgId;
	}

	@Column(name = "gcg_id", nullable = false)
	public Integer getGcgId() {
		return this.gcgId;
	}

	public void setGcgId(Integer gcgId) {
		this.gcgId = gcgId;
	}

	@Column(name = "gcg_name", nullable = false, length = 50)
	public String getGcgName() {
		return this.gcgName;
	}

	public void setGcgName(String gcgName) {
		this.gcgName = gcgName;
	}

	@Column(name = "gc_id", nullable = false)
	public Integer getGcId() {
		return this.gcId;
	}

	public void setGcId(Integer gcId) {
		this.gcId = gcId;
	}

	@Column(name = "category_name", length = 60)
	public String getCategoryName() {
		return this.categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

}